import { get, post, put, del } from '../http/request.js'

export function publishNotice(params) {
    return post('/notice/add', params)
}

export function getPublishedNotices(params) {
    return get('/notice/published', params)
}

export function getDraftNotices(params) {
    return get('/notice/drafts', params)
}

export function editNotice(params) {
    return put('/notice/edit', params)
}

export function changeNoticeStatus(params) {
    return put('/notice/changeStatus', params)
}

export function deleteNotice(params) {
    return del('/notice/delete', params)
}

export function viewNoticeContent(params) {
    return get('/notice/view', params)
}